package core

import (
	"fmt"
	"go-fiber-ip2region/global"
	"go-fiber-ip2region/initialize"
)

func RunFiberServer() {
	Router := initialize.Routers()

	fmt.Printf(" %c[1;0;33m%s%c[0m\n", 0x1B, "** server start::"+global.GLOBAL_CONFIG.COMMON_PORT+" **", 0x1B)

	Router.Listen(":" + global.GLOBAL_CONFIG.COMMON_PORT)
}
